package com.yi.student.model;
import javax.persistence.Entity;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name="t_stu")
public class Student {
	
	private int id ;	
	private String name ;
	private String xh ;
	private String ksh ;
	private String sex ;
	
	/**
	 * zt - 0:在校 ，1：离校
	 */
	private String status;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@NotEmpty(message="用户名不能为空")
	public String getName() {
		return name;
	}

	
	public void setName(String name) {
		this.name = name;
	}

	@NotEmpty(message="学号不能为空")
	public String getXh() {
		return xh;
	}

	
	public void setXh(String xh) {
		this.xh = xh;
	}

	@NotEmpty(message="考试号不能为空")
	public String getKsh() {
		return ksh;
	}

	
	public void setKsh(String ksh) {
		this.ksh = ksh;
	}

	@NotEmpty(message="性别不能为空")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@NotEmpty(message="状态不能为空")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
	
	

}
